import moment from 'moment';
// "dimensionName": "clazz_biz_number"   大班班级id
//  "dimensionName": "clazz_name",  大班班级名称
//  "dimensionName": "subclazz_number",  辅导班id
//  "dimensionName": "subclazz_name",   辅导班名称
// "dimensionName": "lesson_name",  课节名称
// "dimensionName": "lesson_rn", 课节序号
// "dimensionName": "begin_date",  开课日期
// "dimensionName": "teacher_nickname", 主讲老师
// "dimensionName": "sales_teacher_nickname",  销售名称
export const searchFormCfg = [
    {
        type: 'select',
        key: 'clazz_biz_number',
        label: '大班班级ID',
        dimensionName: '班级ID',
        span: 8,
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            showSearch: true,
            allowClear: true,
            placeholder: '请选择大班班级ID, 支持搜索',
        }
    },
    {
        type: 'select',
        key: 'clazz_name',
        label: '大班班级名称',
        dimensionName: '班级名称',
        span: 8,
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            showSearch: true,
            allowClear: true,
            placeholder: '请选择大班班级名称, 支持搜索',
        }
    },
    {
        type: 'select',
        key: 'subclazz_biz_number',
        label: '辅导班ID',
        dimensionName: '辅导班ID',
        span: 8,
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            showSearch: true,
            allowClear: true,
            placeholder: '请选择辅导班ID, 支持搜索',
        }
    },
    {
        type: 'select',
        key: 'subclazz_name',
        label: '辅导班名称',
        dimensionName: '辅导班名称',
        span: 8,
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            showSearch: true,
            allowClear: true,
            placeholder: '请选择辅导班名称, 支持搜索',
        }
    },
    {
        type: 'select',
        key: 'lesson_name',
        label: '课节名称',
        dimensionName: '课节名称',
        span: 8,
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple',
            selectAll: true,
            showSearch: true,
            allowClear: true,
            placeholder: '请选择课节名称, 支持搜索',
        }
    },
    {
        type: 'select',
        key: 'lesson_rn',
        label: '课节序号',
        dimensionName: '课节序号',
        span: 8,
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            mode: 'multiple',
            selectAll: true,
            showSearch: true,
            allowClear: true,
            placeholder: '请选择课节序号, 支持搜索',
        }
    },
    {
        type: 'datePicker',
        key: 'begin_date',
        label: '开课日期',
        dimensionName: '开课时间',
        span: 8,
        rules: [{required: true}],
        props: {
            disabledDate(current) {
                // Can not select days after today
                return current && current > moment().endOf('day');
            },
            format: 'YYYY-MM-DD',
            placeholder: '请选择开课日期',
        }
    },
    {
        type: 'select',
        key: 'teacher_nickname',
        label: '主讲老师',
        dimensionName: '主讲老师',
        span: 8,
        rules: [{required: true}],
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            showSearch: true,
            allowClear: true,
            placeholder: '请选择主讲老师, 支持搜索',
        }
    },
    {
        type: 'select',
        key: 'sales_teacher_nickname',
        label: '销售名称',
        dimensionName: '销售名称',
        span: 8,
        optionsConfig: {
            options: [],
            pager: {}
        },
        props: {
            showSearch: true,
            allowClear: true,
            placeholder: '请选择销售名称, 支持搜索',
        }
    }
];

export const selectUnitId = 'BroadcastRoom_select_1';

// export const dashBoardsCfg = [
//     {
//         dashBoardName: 'OrderOfflineData_PartOne',
//         dashBoardId: 'OrderOfflineData_PartOne',
//         unitId: 'OrderOfflineData_PartOne_line'
//     }
// ];
